import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        isLoginInformation: "",
        address: ""
    },
    mutations: {
        loginInfo: (state, account) => {
            return (state.isLoginInformation = account);
        },
        getAddress: (state, address) => {
            state.address = address;
        }
    },
    actions: {
        getAddress: (context, addres) => {
            context.commit("getAddress", addres);
        }
    },
    modules: {}
});